package io.github.talelin.latticy.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@TableName("banner_item")
@Getter
@Setter
public class BannerItemDO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private String img;
    private String keyword;
    private Integer type;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Date updateTime;

    @JsonIgnore
    // 软删除
    @TableLogic
    private Date deleteTime;

    // 指定列名
    @TableField
    private Long bannerId;


}
